﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using AsterNET.FastAGI.Command;

namespace AsterNET.Extensions.FastAGI.Helpers
{
    public class BusyHelper
    {
        /// <summary>
        /// Indicate busy condition and wait for hangup
        /// </summary>
        /// <param name="seconds">Optional timeout in seconds</param>
        /// <returns></returns>
        public static ExecCommand Busy(int seconds = 0)
        {
            return new ExecCommand("Busy", seconds > 0 ? seconds.ToString() : "");
        }

    }
}
